package com.party.mobile.web.dto.mall.input;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 下单输入参数
 * Created by yifeng
 *
 * @date 2018/4/18 0018
 * @time 下午 17:32
 */
public class MallOrderInput {
    // [{"productId": "abc","quantity": 10, "cartId": "abc"},{"productId": "1123","quantity": 10, "cartId": "abc"}]
    @NotBlank(message = "产品参数不能为空")
    private String buyParams;
    // 买家留言
    private String buyerRemarks;
    @NotBlank(message = "收货地址不能为空")
    private String addressId;
    // 邮费
    @NotBlank(message = "邮费不能为空")
    private Double postage;
    // 分销者编号
    private String distributorId;

    public String getBuyParams() {
        return buyParams;
    }

    public void setBuyParams(String buyParams) {
        this.buyParams = buyParams;
    }

    public String getBuyerRemarks() {
        return buyerRemarks;
    }

    public void setBuyerRemarks(String buyerRemarks) {
        this.buyerRemarks = buyerRemarks;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public Double getPostage() {
        return postage;
    }

    public void setPostage(Double postage) {
        this.postage = postage;
    }

    public String getDistributorId() {
        return distributorId;
    }

    public void setDistributorId(String distributorId) {
        this.distributorId = distributorId;
    }
}
